
int potPin = 0;    
int potPin2 = 1;
int potPin3 = 2;    

int val = 0;       
int val2 = 0;
int val3 = 0;
int gui[60]; 

int counter = 0;
boolean state = false;

void setup() {
  Serial.begin(9600);
}

void loop() {
  val = analogRead(potPin); 
  val2 = digitalRead(12);
  //val2 = analogRead(potPin2);
  //val3 = analogRead(potPin3);
  
  //Serial.println("--------------------------");
  //windVane
  //Serial.print("WindVane : ");
  //Serial.print(val);
  //windSpeed
  //Serial.print("d:");
  //Serial.println(val2);
  //Serial.print("  A2 : ");
  //Serial.println(val3);
  
  
  
  if(val2 == 1){
    digitalWrite(11,HIGH);
    digitalWrite(13,HIGH);
  }
  
  if(val2 == 0){  
    digitalWrite(11,LOW);
    digitalWrite(13,LOW);
  }
  delay(25);
  if(counter < 60){
    gui[counter] = val2;
    counter+=1;
  }else{
    counter =0;
    for(int i=0;i<60;i++){
      Serial.print("[");
      Serial.print(i);
      Serial.print("]:");
      Serial.print(gui[i]);
      Serial.print(", ");
    }
    Serial.println(" ");
  }
}
